package com.xyy.scaffolddao.mapper;

import com.xyy.scaffolddao.dataobject.BannerDO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BannerMapper {
    /**
     * 查询标题列表
     */
    List<BannerDO> selectBannerList();

    /**
     * 插入标题
     */
    @Insert("INSERT INTO movie_banner (banner_id,banner_img) VALUES (#{bannerId},#{bannerImg})")
    void insertBanner(@Param("bannerId") String bannerId, @Param("bannerImg") String bannerImg);
}
